package top.arryweb.application.domain.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分账订单
 * </p>
 *
 * @author astupidcoder
 * @since 2021-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BookKeepDistributionOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private Boolean deleteFlag;

    private Boolean enableFlag;

    private LocalDateTime updateTime;

    private Long version;

    private BigDecimal amount;

    /**
     * 分账时间
     */
    private LocalDateTime distributionTime;

    /**
     * 订单id
     */
    private Long paymentOrderId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 用户id，也可是商户id
     */
    private Long userId;


}
